<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>角色权限设置</title>
	<css file="__CONTROLLER_VIEW__/css/set.css"/>
	<hdjs/>
</head>
<body>
	<div class="wrap hd-form">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'Role/index'}">角色列表</a></li>
				<li><a href="{|U:'Role/add'}">添加角色</a></li>
				<li><a href="{|U:'Role/edit',array('rid'=>$hd.get.rid)}">编辑角色</a></li>
			</ul>
		</div>
		<div class="title-header">角色权限设置</div>
		<form action="" method="post">
			<input type="hidden" name='rid' value="{$hd.get.rid}">
			<table class="table1">
				<thead>
					<list from="$node" name="$n">
						<list from="$n._data" name="$m">
							<tr>
								<td>
									<p class="p"><label><input type="checkbox"  <if value="in_array($m['name'],$controller)">checked=""</if>> {$m.title}</label></p>
									<ul>
										<list from="$m._data" name="$d">
											<li>
												<label><input type="checkbox" name="access[{$m.name}][]" value="{$d.name}" <if value="in_array($d['name'],$action[{$m.name}])" >checked=""</if>> {$d.title}</label>
											</li>
										</list>
									</ul>
								</td>
							</tr>
						</list>
					</list>
				</thead>
				</tr>
			</table>
			<br/>
			<input type="submit" value="提交设置" class="hd-success"/>
		</form>
	</div>
	<js file="__CONTROLLER_VIEW__/js/js.js"/>
</body>
</html>